package com.example.health_life.dao;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MyFavoriteRepository extends JpaRepository<MyFavorite,Integer> {

    List<MyFavorite> findByUserIdAndStatus(Integer userId,  int status);

    List<MyFavorite> findByTypeAndStatus(Byte type,  int status);

    List<MyFavorite> findByStatus(int status);
}
